//
//  BaseController.h
//  HB
//
//  Created by 孙智慧 on 16/1/8.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import "MusicPlayController.h"
#import "UIMarqueeBarView.h"
#import "NetWorkOperation.h"
#import "DBHelper.h"
#import "MBProgressHUD.h"
#import "CCLocationManager.h"
#import "Reachability.h"


@interface BaseController : UIViewController<FxOperationDelegate,CLLocationManagerDelegate>
{
    NetWorkOperation *operation;
    
    DBHelper *_db;
    
    MBProgressHUD *HUD;
    
    CLLocationManager *locationmanager;
    
    // 1 wifi 2 4G 0 没有网络
    NSString *state;
    
    BOOL _hasNextPage;
    
    BOOL isLoading;
}
@property (nonatomic, strong) Reachability *conn;

@property (nonatomic,strong) NSString *city;

@property (nonatomic,strong) NSString *_musicName;

- (void) opSuccessForGet:(id)data;

- (void) setNavigationTitleImage:(NSString *)imageName;

- (void) setNavigationRight:(NSString *)imageName sel:(SEL)sel;

- (void) setNavigationLeft:(NSString *)imageName sel:(SEL)sel;

- (void) setNavBarImage;

- (void) setBackBarButton;

- (void) startRoating:(UIView *) _view animationKey:(NSString *)key;

- (void) pasumeRoation:(UIView *) _view;

- (void) resmeRoation:(UIView *) _view;

- (UIButton *)customButton:(NSString *)imageName
                  selector:(SEL)sel;

//- (void) openOrCloseLeftList;

-(void) stopNavRightBtnRoation;
 
-(MusicPlayController *) musicPlay;

//-(void) downLoadImageByURL:(UIImageView *) view andURL:(NSString *) imgPath andName:(NSString *)imgName;

-(void) waitingFor:(NSString *)labelText andMethod:(SEL)method onTarget:(id)target;

-(void)addViewRes:(ZYMusic *) music;

- (void)OpenMusic;

@end
